package request

// AddGoodsReq 商品发布
type AddGoodsReq struct {
	Images      string `form:"images" json:"images" binding:"required"`
	Name        string `form:"name" json:"name" binding:"required"`
	TypesId     uint64 `form:"types_id" json:"typesId" binding:"required"`
	StockpileId uint64 `form:"stockpile_id" json:"stockpile_id" binding:"required"`
	K           string `form:"k" json:"k" binding:"required"`
	V           string `form:"v" json:"v" binding:"required"`
	Price       uint64 `form:"price" json:"price" binding:"required"`
	Stockpile   uint64 `form:"stockpile" json:"stockpile" binding:"required"`
}

// GoodsListReq 商品列表
type GoodsListReq struct {
	Page    uint64 `form:"page" json:"page"`
	Size    uint64 `form:"size" json:"size"`
	Status  uint64 `form:"status" json:"status"`
	KeyWord string `form:"key_word" json:"keyWord"`
}
